import { createRouter, createWebHistory } from 'vue-router'
import UpperDu from '@r/components/upper/UpperDu.vue'
import FltCtl from '@r/components/lower/Flt/FltCtl.vue'
import Fuel from '@r/components/lower/fuel/index.vue'
import ELEC from '@r/components/lower/Elec/index.vue'
import HYD from '@r/components/lower/Hyd/index.vue'
import Air from '@r/components/lower/Air/index.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: UpperDu
  },
  {
    path: '/fltctl',
    name: 'fltctl',
    component: FltCtl
  },
  {
    path: '/fuel',
    name: 'fuel',
    component: Fuel
  },
  {
    path: '/elec',
    name: 'elec',
    component: ELEC
  },
  {
    path: '/hyd',
    name: 'hyd',
    component: HYD
  },
  {
    path: '/air',
    name: 'air',
    component: Air
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL), // 使用 HTML5 History 模式
  routes
})

export default router
